/**
 * <p>Copyright (c) Snail Game 2016</p>
 */
package com.snail.dubbo.consumer;

import com.snail.dubbo.service.BusinessService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Title: Consumer
 * @Description:
 * @Author zhujing
 * @Date 2016/3/28
 * @Version V1.0
 */
public class Consumer {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("classpath:consumer.xml");
        context.start();

        BusinessService service = (BusinessService)context.getBean("businessService");

        String ret = service.say("Snail");

        System.out.println("=====>return:  " + ret);
    }
}
